package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.springdinner.SpringDinnerUserData;
import com.yanqu.road.entity.activity.springdinner.SpringDinnerBallConfig;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class SpringDinnerBusiness {

    public static SpringDinnerUserData getUserData(long userId, int activityId) {
        return DaoHelper.getSpringDinnerUserDataDaoImpl().getUserData(activityId, userId);
    }


    public static boolean addUserData(SpringDinnerUserData userData) {
        return DaoHelper.getSpringDinnerUserDataDaoImpl().add(userData);
    }

    public static boolean updateUserData(SpringDinnerUserData userData) {
        return DaoHelper.getSpringDinnerUserDataDaoImpl().update(userData);
    }

    public static Map<Integer, SpringDinnerBallConfig> getBallMap(int activityId) {
        return DaoHelper.getSpringDinnerConfigDaoImpl().getBallMap(activityId);
    }

}
